﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text.RegularExpressions;

namespace spk_eAuction.Classes
{
    public class TextConvertor
    {
        public static string Html2Text(string html)
        {
            string output = Regex.Replace(html, "<[^>]*>", "");
            output = Regex.Replace(output, "&[^;]*;", "");
            output = Regex.Replace(output, "  ", " ");
            output = Regex.Replace(output, "\n\n", "\n");
            return output;
        }
    }
}